﻿<%@  Control Language="C#" AutoEventWireup="true" CodeBehind="OpenCommunityProfilesInBusinessLinesAdmin.ascx.cs"
    Inherits="Micronet.OpenWeb.OpenWeb.Admin.Views.Shared.OpenCommunityProfilesInBusinessLinesAdmin" %>

<owc:OwGrid ID="OpenCommunityProfilesInBusinessLinesGrid" runat="server" DataSourceID="OpenCommunityProfilesInBusinessLinesOds" SkinID="OwGridAdmin"
    OwEnableMessageDisplay="True" OwMessageDisplayControl="" OwMessageDisplayType="InPlace">
    <MasterTableView AutoGenerateColumns="False" DataSourceID="OpenCommunityProfilesInBusinessLinesOds">
        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
        <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </RowIndicatorColumn>
        <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </ExpandCollapseColumn>
        <Columns>
            <owct:GridBoundColumn DataField="OpenCommunityProfileInBusinessLineID" DataType="System.Int64"
                FilterControlAltText="Filter OpenCommunityProfileInBusinessLineID column" HeaderText="OpenCommunityProfileInBusinessLineID"
                SortExpression="OpenCommunityProfileInBusinessLineID" UniqueName="OpenCommunityProfileInBusinessLineID">
            </owct:GridBoundColumn>
            <owct:GridBoundColumn DataField="OpenCommunityProfileDetailID" DataType="System.Int64"
                FilterControlAltText="Filter OpenCommunityProfileDetailID column" HeaderText="OpenCommunityProfileDetailID"
                SortExpression="OpenCommunityProfileDetailID" UniqueName="OpenCommunityProfileDetailID">
            </owct:GridBoundColumn>
            <owct:GridBoundColumn DataField="CommunityBusinessLineID" DataType="System.Int64"
                FilterControlAltText="Filter CommunityBusinessLineID column" HeaderText="CommunityBusinessLineID"
                SortExpression="CommunityBusinessLineID" UniqueName="CommunityBusinessLineID">
            </owct:GridBoundColumn>
          
           <owct:GridTemplateColumn FilterControlAltText="Filter TemplateColumn column" HeaderText="<%$ OwR:IsDeleted %>"
                UniqueName="TemplateColumn">
                <ItemTemplate>  
                  <owc:OwCheckBox ID="IsDeletedCb" runat="server" Checked='<%#Eval("IsDeleted")%>'
                                    AutoPostBack="true" Text='<%#Eval("OpenCommunityProfileInBusinessLineID")%>' CssClass="HiddenText"
                                    OnCheckedChanged="IsDeletedCb_CheckedChanged" />
                </ItemTemplate>
            </owct:GridTemplateColumn>

         

        </Columns>
        <EditFormSettings EditFormType="Template">
            <FormTemplate>
                <table>
                    <tr>
                        <td>
                            <owc:OwR runat="server" OwText="OpenCommunityProfileDetails" />
                        </td>
                        <td>
                            <owc:OwObjectDataSource ID="OpenCommunityProfileDetailsOds" runat="server" DataObjectTypeName="Micronet.OpenWeb.Entity.OwOpenCommunityProfileDetailsEntity"
                                DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
                                SelectMethod="OwGetByDynamic" TypeName="Micronet.OpenWeb.Com.BLL.OwOpenCommunityProfileDetailsBLL"
                                UpdateMethod="OwUpdate">
                                <selectparameters>
        <asp:Parameter Name="isDeleted" Type="Boolean" />
        <asp:Parameter Name="continentID" Type="Int64" />
        <asp:Parameter Name="countryID" Type="Int64" />
        <asp:Parameter Name="provinceID" Type="Int64" />
        <asp:Parameter Name="districtID" Type="Int64" />
        <asp:Parameter Name="wardID" Type="Int64" />
        <asp:Parameter Name="languageCode" Type="String" />
        <asp:Parameter Name="openCommunityProfileID" Type="Int64" />
        <asp:Parameter Name="sortClause" Type="String" />
        <asp:Parameter Name="sortDirection" Type="String" />
        <asp:Parameter Name="startRowIndex" Type="Int32" />
        <asp:Parameter Name="maximumRows" Type="Int32" />
    </selectparameters>
                            </owc:OwObjectDataSource>
                            <owc:OwComboBox ID="OpenCommunityProfileDetails" runat="server" DataSourceID="OpenCommunityProfileDetailsOds"
                                DataTextField="OpenCommunityProfileDetailID" DataValueField="Name">
                            </owc:OwComboBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                          <owc:OwR runat="server" OwText="CommunityBusinessLines" />

                        </td>
                        <td>
                        
<owc:OwObjectDataSource ID="CommunityBusinessLinesOds" runat="server" 
    DataObjectTypeName="Micronet.OpenWeb.Entity.OwCompaniesBusinessLinesEntity" 
    DeleteMethod="OwDelete" InsertMethod="OwInsert" 
    OldValuesParameterFormatString="original_{0}" SelectMethod="OwGetByDynamic" 
    TypeName="Micronet.OpenWeb.Com.BLL.OwCompaniesBusinessLinesBLL" 
    UpdateMethod="OwUpdate">
    <SelectParameters>
        <asp:Parameter Name="parentID" Type="Int64" />
        <asp:Parameter Name="code" Type="String" />
        <asp:Parameter Name="isHomeDisplay" Type="Boolean" />
        <asp:Parameter Name="isHot" Type="Boolean" />
        <asp:Parameter Name="enableBegin" Type="DateTime" />
        <asp:Parameter Name="enableEnd" Type="DateTime" />
        <asp:Parameter Name="homeDisplayBegin" Type="DateTime" />
        <asp:Parameter Name="homeDisplayEnd" Type="DateTime" />
        <asp:Parameter Name="hotDisplayBegin" Type="DateTime" />
        <asp:Parameter Name="hotDisplayEnd" Type="DateTime" />
        <asp:Parameter Name="isApproved" Type="Boolean" />
        <asp:Parameter Name="isDeleted" Type="Boolean" />
        <asp:Parameter DbType="Guid" Name="creatingUser" />
        <asp:Parameter DbType="Guid" Name="editingUser" />
        <asp:Parameter DbType="Guid" Name="deletingUser" />
        <asp:Parameter Name="languageCode" Type="String" />
        <asp:Parameter Name="isEnabled" Type="Boolean" />
        <asp:Parameter Name="sortClause" Type="String" />
        <asp:Parameter Name="sortDirection" Type="String" />
        <asp:Parameter Name="startRowIndex" Type="Int32" />
        <asp:Parameter Name="maximumRows" Type="Int32" />
    </SelectParameters>
</owc:OwObjectDataSource>
<owc:OwComboBox ID="CommunityBusinessLines" runat="server" 
    DataSourceID="CommunityBusinessLinesOds" DataTextField="Name" 
    DataValueField="CompanyBusinessLineID">
</owc:OwComboBox>

                        </td>
                    </tr>
                    <tr>
                        <td>
                          <owc:OwR runat="server" OwText="IsDeleted" />

                        </td>
                        <td>
                          <owc:OwCheckBox ID="IsDeletedCb" runat="server" Checked='<%# Bind("IsDeleted") %>'
                                        SkinID="OwCheckBoxAdmin" />

                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>

                         <owc:OwButton ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                            runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'
                            SkinID="OwButtonAdmin">
                        </owc:OwButton>
                        <owc:OwButton ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
                            SkinID="OwButtonAdmin" CommandName="Cancel">
                        </owc:OwButton>
                        </td>
                    </tr>
                </table>
            </FormTemplate>
        </EditFormSettings>
    </MasterTableView>
    <FilterMenu EnableImageSprites="False">
        <WebServiceSettings>
            <ODataSettings InitialContainerName="">
            </ODataSettings>
        </WebServiceSettings>
    </FilterMenu>
    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
        <WebServiceSettings>
            <ODataSettings InitialContainerName="">
            </ODataSettings>
        </WebServiceSettings>
    </HeaderContextMenu>
</owc:OwGrid>
<owc:OwObjectDataSource ID="OpenCommunityProfilesInBusinessLinesOds" runat="server"
    DataObjectTypeName="Micronet.OpenWeb.Entity.OwOpenCommunityProfilesInBusinessLinesEntity"
    DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
    SelectMethod="OwGetByDynamic" TypeName="Micronet.OpenWeb.Com.BLL.OwOpenCommunityProfilesInBusinessLinesBLL"
    UpdateMethod="OwUpdate">
    <InsertParameters>
        <asp:parameter name="openCommunityProfileInBusinessLineID" type="Int64" />
        <asp:parameter name="openCommunityProfileDetailID" type="Int64" />
        <asp:parameter name="communityBusinessLineID" type="Int64" />
        <asp:parameter name="isDeleted" type="Boolean" />
    </InsertParameters>
    <SelectParameters>
        <asp:parameter name="isDeleted" type="Boolean" />
        <asp:parameter name="openCommunityProfileDetailID" type="Int64" />
        <asp:parameter name="communityBusinessLineID" type="Int64" />
        <asp:parameter name="sortClause" type="String" />
        <asp:parameter name="sortDirection" type="String" />
        <asp:parameter name="startRowIndex" type="Int32" />
        <asp:parameter name="maximumRows" type="Int32" />
    </SelectParameters>
    <UpdateParameters>
        <asp:parameter name="openCommunityProfileInBusinessLineID" type="Int64" />
        <asp:parameter name="openCommunityProfileDetailID" type="Int64" />
        <asp:parameter name="communityBusinessLineID" type="Int64" />
        <asp:parameter name="isDeleted" type="Boolean" />
    </UpdateParameters>
</owc:OwObjectDataSource>


